package com.ynet.middleground.mobile.approve.constant;

/**
 * 地址相关配置
 * 
 * @author liulx
 */
public class UrlConstant {

    /**
     * 钉钉开放平台地址
     */
    private static final String HOST = "https://oapi.dingtalk.com";

    /**
     * 钉钉网关 gettoken 地址
     */
    public static final String URL_GET_TOKEN = HOST + "/gettoken";

    /**
     * 获取 jsapi_ticket 地址
     */
    public static final String URL_GET_JSTICKET = HOST + "/get_jsapi_ticket";

    /**
     * 获取用户在企业内 userId 的接口 URL
     */
    public static final String URL_GET_USER_INFO = HOST + "/user/getuserinfo";

    /**
     * 获取用户姓名的接口URL
     */
//    public static final String URL_USER_GET = HOST + "/user/get";
    public static final String URL_USER_GET = HOST + "/topapi/v2/user/get";

    /**
     * 获取部门列表接口 URL
     */
    public static final String URL_DEPARTMENT_LIST = HOST + "/department/list";

    /**
     * 获取部门用户接口 URL
     */
    public static final String URL_USER_SIMPLELIST = HOST + "/user/simplelist";

    /**
     * 发送工作通知<br>
     * 🚧注意：给同一员工一天只能发送一条内容相同的消息通知。除非使用新版 SDK 待办通知!
     */
    public static final String URL_CREATE_MESSAGE = HOST + "/topapi/message/corpconversation/asyncsend_v2";

}
